<?php foreach ($posts->getResults() as $post): ?>
<div class="post">
  <h2><?php echo link_to($post->getHeader(), '@blog_show?category='.$post->getCategoryUrl().'&slug='.$post->getName(), array('class'=>'post-header')) ?></h2>
  <?php if(!isset($is_category)) echo link_to($post->getCategoryName(), '@blog_category?category='.$post->getCategoryUrl(), array('class'=>'category-header')) ?>
  <div class="post-preview">
      <?php $description = $post->getRawValue()->getDescriptionArticles() ?>
      <?php echo $description['text'] ?>
      <p><?php echo $description['fullread'] === true ? link_to( 'Читать далее...', '@blog_show?category='.$post->getCategoryUrl().'&slug='.$post->getName(), array('class'=>'welcome', 'anchor'=>'cut')) : '' ?></p>
  </div>
  <?php include_partial('post_about', array('post'=>$post, 'is_preview'=>true)) ?>
</div>
<?php endforeach; ?>